import React from 'react';
import { HashRouter, Route, Switch } from 'react-router-dom';
import Home from './pages/home';
import Detail from './pages/detail';
import Writter from './pages/writter'
import Login from './pages/login'
import Register from './pages/register'

const BasicRoute = () => (
  <HashRouter>
    <Switch>
      <Route path='/' exact component={Home}></Route>
      <Route path='/login' exact component={Login}></Route>
      <Route path='/detail/:id' exact component={Detail}></Route>
      <Route path="/writter" exact component={Writter}></Route>
      <Route path="/register" exact component={Register}></Route>
    </Switch>
  </HashRouter>
);


export default BasicRoute;
